package com.moetube.upload.feign;

import com.moetube.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;

/**
 * @description:
 * @author: Zero
 * @time: 2020/01/03 18:16
 */
@FeignClient("upload")
@RequestMapping("/file")
public interface UploadFeign {

    @PostMapping("/upload")
    public Result uploadFile(MultipartFile file);
}
